<script setup>
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 在vue3 composition API中
// 1. 获取路由对象,router ----> 通过 useRouter
// const router = useRouter()
// 2. 获取路由参数 route  useRoute()
// const router = useRoute()
// import { useRouter, useRoute } from "vue-router";
// const router = useRouter()
// const route = useRoute()
// const goList = () => {
//   console.log(router,'路由对象')
//   console.log(route,'路由参数')
// }
// // 使用pinia
// import { useUserStore } from '@/stores/index.js'
// const userStore = useUserStore()
</script>
<template>
<!--  <h1>我是app</h1>-->
<!--  <el-button type="primary">Primary</el-button>-->
<!--  <text-com></text-com>-->
<!--  <p>{{ userStore.token }}</p>-->
<!--  <el-button @click="userStore.setToken('Bearer sajkdasdasdoidknckkjjhdk')">登录</el-button>-->
<!--  <el-button @click="userStore.removeToken()">删除</el-button>-->

<!--  <hr>-->
<!--  <router-view></router-view>-->
  <el-config-provider :locale="zhCn">
    <router-view></router-view>
  </el-config-provider>
</template>
<style></style>
